﻿@using Sprint1.Models

@model IEnumerable<QuestionPoll>

@{
    ViewBag.Title = "Polls";
}
<h1>Course @ViewData["CourseName"]</h1>
@using (Html.BeginForm())
{
    <fieldset>
        <legend>Question Polls</legend>
        @foreach (var question in @Model)
        {
            <div class="editor-label">
                @Html.ActionLink(question.Text, "Details", new { questionId = question.Id })
            </div>
        }
    </fieldset>
    <div>
        @Html.ActionLink("Create a Question Poll", "Create", new { courseId = Convert.ToInt32(ViewData["CourseId"]) })
    </div>
}

    @*@section Scripts {
        @Scripts.Render("~/bundles/jqueryval")
    }*@
